<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="csrf-token" content="{{ csrf_token }}">
    <title>{% block title %}安全认证系统{% endblock %}</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="/static/css/style.css">
    {% block head %}{% endblock %}
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="layui-header">
        <div class="layui-container">
            <div class="header-content">
                <div class="logo">
                    <i class="fas fa-shield-alt"></i>
                    <span>安全认证系统</span>
                </div>
                <div class="nav-links">
                    {% if current_user.is_authenticated %}
                    <div class="user-info">
                        <i class="fas fa-user-circle"></i>
                        <span>{{ current_user.username }}</span>
                        <div class="dropdown-menu">
                            <a href="/profile"><i class="fas fa-user"></i> 个人中心</a>
                            <a href="/logout"><i class="fas fa-sign-out-alt"></i> 退出登录</a>
                        </div>
                    </div>
                    {% else %}
                    <a href="/login" class="nav-link"><i class="fas fa-sign-in-alt"></i> 登录</a>
                    <a href="/register" class="nav-link"><i class="fas fa-user-plus"></i> 注册</a>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>

    <!-- 内容区域 -->
    <div class="main-content">
        {% block content %}{% endblock %}
    </div>

    <!-- 页脚 -->
    <div class="layui-footer footer">
        <div class="layui-container">
            <div class="footer-content">
                <div class="footer-section">
                    <h4>安全认证系统</h4>
                    <p>提供企业级安全认证解决方案</p>
                </div>
                <div class="footer-section">
                    <h4>快速链接</h4>
                    <ul>
                        <li><a href="/login">用户登录</a></li>
                        <li><a href="/register">新用户注册</a></li>
                        <li><a href="/forgot-password">找回密码</a></li>
                        <li><a href="#">帮助中心</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h4>联系方式</h4>
                    <ul>
                        <li><i class="fas fa-envelope"></i> support@securitysystem.com</li>
                        <li><i class="fas fa-phone"></i> 400-123-4567</li>
                    </ul>
                </div>
            </div>
            <div class="copyright">
                <p>© 2025 安全认证系统 | 基于Flask和Layui构建 | 遵循MIT开源协议</p>
                <p class="security-info">
                    <i class="fas fa-shield-alt"></i> 
                    安全提示：请勿在公共设备保存密码，定期更换密码
                </p>
            </div>
        </div>
    </div>

    <script src="/static/layui/layui.js"></script>
    <script src="/static/js/common.js"></script>
    {% block scripts %}{% endblock %}
</body>

</html>